package com.zmzncs.lmtc.module.customer.pojo.card;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.math.BigDecimal;
import java.sql.Time;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 客户-会员卡
 * </p>
 *
 * @author 任建波
 * @since 2020-09-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("cust_card")
@ApiModel(value="Card对象", description="客户-会员卡")
public class Card implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "客户id")
    private Long customerId;

    @ApiModelProperty(value = "车辆id")
    private Long carId;

    @ApiModelProperty(value = "车牌")
    private String carNumber;

    @ApiModelProperty(value = "车场月租车编号")
    private String parkMonthId;

    @ApiModelProperty(value = "卡类型（1：月卡，2：时长卡 ，4：充值，100：白天卡，101：夜间卡）")
    private Integer cardType;

    @ApiModelProperty(value = "")
    private BigDecimal cardBalance;

    @ApiModelProperty(value = "剩余时长（小时）")
    private Long timeLeft;

    @ApiModelProperty(value = "会员卡状态（1：正常，2：禁用）")
    private Integer status;

    @ApiModelProperty(value = "禁用原因")
    private String prohibitionReasons;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

}
